package javaRevise.overload;

/**
 * @author WuYongheng
 * @date 2021/12/3
 * @description  演示重载
 */
public class Overload {
    public static void main(String[] args) {
        int x = 123;
        String y = "abc";
        print(x);
        print(x, y);
    }

    static void print(int a) {
        System.out.println(a);
    }

    static void print(int a, String b) {
        System.out.println(a + b);
    }

}
